package com.apex.crm.dao;

import com.apex.crm.base.BaseMapper;
import com.apex.crm.query.CustomerQuery;
import com.apex.crm.vo.Customer;

import java.util.List;
import java.util.Map;

public interface CustomerMapper extends BaseMapper<Customer,Integer> {
    int deleteByPrimaryKey(Integer id);

    int insert(Customer record);

    //int insertSelective(Customer record);

    Customer selectByPrimaryKey(Integer id);

    //int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);

    public List<Map<String, Object>> queryAllCustomer();

    Customer selectCustomerByName(String name);

    int deleteById(Customer customer);

    List<Map<String, Object>> queryCustomerContributionByParams(CustomerQuery customerQuery);

    List<Map<String, Object>> countCustomerMake();

    List<Map<String, Object>> countCustomerServe();

    Customer selectByNameAndState(String customer);
}